﻿using log4net;
using System;
using System.IO;

namespace Quartz.Server.Log
{
    public class LoggerManager 
    {
        private ILog _logger = LogManager.GetLogger(typeof(LoggerManager));
        public LoggerManager()
        {
            log4net.Config.XmlConfigurator.ConfigureAndWatch(new FileInfo(AppDomain.CurrentDomain.BaseDirectory + "log4net.config"));
        }

        public void Write(string message)
        {
            _logger.InfoFormat(message);
        }
    }
}